package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiOrderCommentMapper;
import com.platform.entity.OrderCommentVo;
 
/**
 * 订单评论表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-22 10:46:10
 */
@Service 
public class ApiOrderCommentService  {
    @Autowired
    private ApiOrderCommentMapper orderCommentDao;

    
    public OrderCommentVo queryObject(Integer id) {
        return orderCommentDao.queryObject(id);
    }

    
    public List<OrderCommentVo> queryList(Map<String, Object> map) {
        return orderCommentDao.queryList(map);
    }

    
    public int queryTotal(Map<String, Object> map) {
        return orderCommentDao.queryTotal(map);
    }

    
    public int save(OrderCommentVo orderComment) {
        return orderCommentDao.save(orderComment);
    }

    
    public int update(OrderCommentVo orderComment) {
        return orderCommentDao.update(orderComment);
    }

    
    public int delete(Integer id) {
        return orderCommentDao.delete(id);
    }

    
    public int deleteBatch(Integer[]ids) {
        return orderCommentDao.deleteBatch(ids);
    }
}
